import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
	  isCollapse:false,//控制侧边栏的展开与收缩
	  tagsList:[] //Tags.vue组件里面的数组数据
  },
  mutations: {
	  setCollapse(state){
		  state.isCollapse=!state.isCollapse
	  },
	  setTagsList(state,arr){//改变数据
		  state.tagsList=arr
	  }
  },
  actions: {},
  modules: {}
});
